package com.qf.spring.service.impl;

import com.qf.spring.dao.UserDao;
import com.qf.spring.service.UserService;

public class UserServiceImpl implements UserService {
     //使用spring容器后
     private  UserDao userDao;
    @Override
    public void save() {

        // UserDao userJdbcDao = new UserJdbcDaoImpl();
        
        userDao.save();
    }
    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
